from django.db import models

# Create your models here.

from luff.uitls.model import BannerBase


class Banner(BannerBase):
    title = models.CharField(max_length=32,unique=True,verbose_name='标题')
    link = models.CharField(max_length=64,verbose_name='链接')
    image = models.ImageField(upload_to='banner',verbose_name='图片')
    info = models.TextField(verbose_name='详情')

    class Mate:
        db_table = 'luff_banner'
        verbose_name_plural = '轮播图表'

    def __str__(self):
        return self.title